{% extends "default.html" %}

{% load i18n %}
{% load jalali_view %}
{% load digg_paginator %}

{% block title %} {% trans "Payments" %}{% endblock %}

{% block page_content %}
<h3>{% trans "Payments" %}</h3>
<table border="1" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th>{% trans "Ad" %}</th>
			<th>{% trans "Advertizer" %}</th>
			<th>{% trans "Amount Paid" %}</th>
			<th>{% trans "Amount To Be Paid" %}</th>
			<th>{% trans "Payment Date" %}</th>
		</tr>
	</thead>
	{% for o in current_page.object_list %}
	<tr>
		<td>{{ o.order.ad.title }}</td>
		<td>{{ o.order.ad.advertizer }}</td>
		<td>{{ o.amount }}</td>
		<td>{{ o.order.amount }}</td>
		<td>{% jalali_view o.order.payment_date %}</td>
	</tr>
	{% endfor %}
	<tr>
	<td colspan="5">{{ balance }}</td>
	</tr>
</table>

{% digg_paginator %}

{% endblock page_content %}
